package com.bluefish.bltuan.service;

import java.util.List;

import com.bluefish.bltuan.module.Category;
import com.bluefish.bltuan.util.PageIndex;

public interface CategoryService extends BasicService<Category, Integer> {
	
	public static final int CITY = 10;
	public static final int TUANGOU = 11;
	
	List<Category> listCategoryByType(int type);

	List<Category> listCities();

	void addCity(Category city2);

	List<Category> listStartedCities();

	void startCity(Category currentCity);

	void closeCity(Category currentCity);

	List<Category> listCities(PageIndex pageIndex);

	Category getCityByName(String cityName);

	Category getCityByNickName(String nickname);
}
